﻿@using RiverCruise.Helpers
<!DOCTYPE html>

<html>
    <head>
        <meta name="viewport" content="width=device-width" />
        <title>@ViewBag.Title</title>
        <link href="~/Content/bootstrap.css" rel="stylesheet" />
        <link href="~/Content/style.css" rel="stylesheet" />
        <link href="~/Content/themes/base/all.css" rel="stylesheet" />
        <link href="~/Content/jQuery.FileUpload/css/jquery.fileupload.css" rel="stylesheet" />

        <script src="~/Scripts/jquery-2.1.1.min.js"></script>
        <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
        <script src="~/Scripts/jquery-ui-1.11.2.min.js"></script>
        <script src="~/Scripts/bootstrap.js"></script>
        <script src="~/Scripts/jquery.validate.min.js"></script>
        <script src="~/Scripts/jquery.validate.unobtrusive.js"></script>
        <script src="~/Scripts/rc.js"></script>
        <script src="~/Scripts/jQuery.FileUpload/jquery.fileupload.js"></script>
    </head>
<body class="">
    <div class="wrapper container">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container-fluid">
                
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <span class="navbar-brand" href="#">RCruise</span>
                </div>

                <div class="collapse navbar-collapse" id="bs-navbar-collapse">
                    <ul class="nav navbar-nav">
                        <li id="ShipsMenuItem">@Html.ActionLink("Home", "Index", "Home")</li>
                        <li id="ShipsMenuItem">@Html.ActionLink("Ships", "Ships", "Home")</li>
                        <li id="CompaniesMenuItem">@Html.ActionLink("Companies", "Index", "Company")</li>
                        <li id="ReportsMenuItem">@Html.ActionLink("Reports", "Index", "Report")</li>
                        <li id="LinksMenuItem">@Html.ActionLink("Links", "Index", "Links")</li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                        @{
                            if (Roles.IsUserInRole(RoleHelper.Edit))
                            {
                                <li>@Html.ActionLink("Manage Users", "Index", "UserManagement")</li>
                            }
                        }
                        @if (WebSecurity.IsAuthenticated)
                        {
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                                    <span class="glyphicon glyphicon-user"></span>
                                    @WebSecurity.CurrentUserName
                                    <span class="caret"></span>
                                </a>
                                <ul class="dropdown-menu" role="menu">
                                    <li>@Html.ActionLink("Change password", "ChangePassword", "Account")</li>
                                    <li class="divider"></li>
                                    <li>@Html.ActionLink("Log Off", "LogOff", "Account")</li>
                                </ul>
                            </li>
                        }
                    </ul>


                </div>            
            </div>
            </nav>
        <div class="pageContent">
            @RenderBody()
        </div>
        <div id="modalPlaceHolder"></div>
        <footer class="text-right">
            <hr />
            <span>@Html.ActionLink("What's new?", "WhatsNew", "Home")</span>
        </footer>
    </div>
</body>
</html>
